package com.green.service.manage;

import java.util.List;
import java.util.Map;

import com.green.common.page.Pagination;
import com.green.model.manage.Person;
import com.green.model.manage.enums.PositionEnum;

public interface PersonService {

	List<Person> getLoginUser(Map<String,Object> map);

	Person getBaseInfoPersonById(String id);
	
	Person getPersonById(String id);
	
	Person getPersonById(String id, boolean adminFlag);
	
	Pagination<Person> getPersonPagination(Pagination<Person> pag,Map<String, Object> param);
	
	Pagination<Person> getAreaPersonPagination(Pagination<Person> pag,Map<String, Object> param);

	int insertPerson(Person ct);

	int updatePerson(Person ct);	

	int deletePerson(Map<String, Object> param);

	
	List<Person> getPersonList(Map<String, Object> param);
	
	public List<Person> queryFuzzySearchByName(String name,String city);
	
	public List<Person> queryFuzzySearchJoinPersionByName(String name,String orgids);
	
	public Person getCityManager(String personId);
	
	public Person getCityManager();
	
	
	public Person queryPersonByCity(String cityName,PositionEnum position);
	
	public Person getPersonParentOrgId(String personId);
	
	public Person getPersonParentPersonId(String personId);
}
